package com.aidex.biz.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;

/**
 * 设备信息对象 biz_equ_info
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2022-09-22
 */
@Data
public class EquInfo extends BaseEntity<EquInfo> {
    private static final long serialVersionUID = 1L;


    /**
     * 设备名称
     */
    @Excel(name = "设备型号")
    private String equXinghao;

    /**
     * 设备编号
     */
    @Excel(name = "设备编号")
    private String equNo;

    /**
     * 经度
     */
    private String equLng;

    /**
     * 纬度
     */
    private String equLat;

    /**
     * 地址
     */
    private String equAddress;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态（0正常 1 停用 -99 维修）
     */
    @NotBlank(message = "状态（0正常 1 停用 -99 维修）不允许为空")
    private String status;

    private String housingId;
    private String housingName;
    private String areaInfo;
    // 设备距离
    private String distance;

    private String statusText;

    public void setEquXinghao(String equXinghao) {
        this.equXinghao = equXinghao;
    }

    public String getEquXinghao() {
        return equXinghao;
    }

    public void setEquNo(String equNo) {
        this.equNo = equNo;
    }

    public String getEquNo() {
        return equNo;
    }

    public void setEquLng(String equLng) {
        this.equLng = equLng;
    }

    public String getEquLng() {
        return equLng;
    }

    public void setEquLat(String equLat) {
        this.equLat = equLat;
    }

    public String getEquLat() {
        return equLat;
    }

    public void setEquAddress(String equAddress) {
        this.equAddress = equAddress;
    }

    public String getEquAddress() {
        return equAddress;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSort() {
        return sort;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("userId", getUserId()).append("deptId", getDeptId()).append("userName", getUserName()).append("deptName", getDeptName()).append("companyId", getCompanyId()).append("equXinghao", getEquXinghao()).append("equNo", getEquNo()).append("equLng", getEquLng()).append("equLat", getEquLat()).append("equAddress", getEquAddress()).append("sort", getSort()).append("status", getStatus()).append("remark", getRemark()).append("id", getId()).append("createBy", getCreateBy()).append("createDept", getCreateDept()).append("createTime", getCreateTime()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("updateIp", getUpdateIp()).append("version", getVersion()).append("delFlag", getDelFlag()).toString();
    }
}
